package grimbo.goodwinfooty.processing;

import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStreamReader;
import java.util.Map;

public class PrintCSVProcessor implements Processor {
    public String process(Map context) throws Exception {
        byte[] csvBytes = (byte[]) context.get(XLS2CSVProcessor.CTX_CSV_BYTES);
        BufferedReader br = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(csvBytes)));
        String s = br.readLine();
        while (null != s) {
            System.out.println(s);
            s = br.readLine();
        }
        return null;
    }
}
